var express = require('express');
var router = express.Router();

/* GET users listing. */
router.get('/', function(req, res, next) {
  res.send('respond with a resource');
});
// 测试api
router.get('/testApi',function(req,res,next){
  res.json({name:jaki,age:25},{
    success:function(data){
      console.log(data);
    },
    error:function(data){
      console.log(data);
    }
  });
});
module.exports = router;
